package template.demo1;

/**
 * 模板方法模式.
 *
 * @author GongXincheng
 * @since 2019-09-17 20:07
 */
public class Main {

    public static void main(String[] args) {

        AbstractClass abstractClass1= new ConcreteClassA();
        abstractClass1.templateMethod();

        AbstractClass abstractClass2 = new ConcreteClassB();
        abstractClass2.templateMethod();

    }

}
